package com.booza.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Domain model for league feature.
 */
public class League implements java.io.Serializable
{
	private static final long serialVersionUID = -3393670632862205351L;
	private Integer leagueid;
	private Integer gametype;
	private String name;
	private String description;
	private Integer creator;
	private Date createdate;
	private Date endtime;
	private Date starttime;
	private Date accepttime;
	private Integer wager;
	private boolean privacy;
	private boolean friendsinvite;
	private boolean excludeplayers;
	private Integer status;
	private Set players = new HashSet(0);
	private Set statses = new HashSet(0);
	private GameType game;
	private Account account;
	private Account winner;
	private String duration;
	private String winStatus;
	private boolean paymentProcessed;

	public League() {

	}

	public Integer getLeagueid()
	{
		return leagueid;
	}

	public void setLeagueid(Integer leagueid)
	{
		this.leagueid = leagueid;
	}

	public Account getAccount()
	{
		return this.account;
	}

	public void setAccount(Account account)
	{
		this.account = account;
	}

	public Integer getGametype()
	{
		return this.gametype;
	}

	public void setGametype(Integer gametype)
	{
		this.gametype = gametype;
	}

	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getDescription()
	{
		return this.description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public Integer getCreator()
	{
		return creator;
	}

	public void setCreator(Integer creator)
	{
		this.creator = creator;
	}

	public Date getCreatedate()
	{
		return this.createdate;
	}

	public void setCreatedate(Date createdate)
	{
		this.createdate = createdate;
	}

	public Date getEndtime()
	{
		return endtime;
	}

	public void setEndtime(Date endtime)
	{
		this.endtime = endtime;
	}

	public Date getAccepttime()
	{
		return this.accepttime;
	}

	public void setAccepttime(Date accepttime)
	{
		this.accepttime = accepttime;
	}

	public Integer getWager()
	{
		return this.wager;
	}

	public void setWager(Integer wager)
	{
		this.wager = wager;
	}

	public boolean getPrivacy()
	{
		return this.privacy;
	}

	public void setPrivacy(boolean privacy)
	{
		this.privacy = privacy;
	}

	public boolean getFriendsinvite()
	{
		return this.friendsinvite;
	}

	public void setFriendsinvite(boolean friendsinvite)
	{
		this.friendsinvite = friendsinvite;
	}

	public Integer getStatus()
	{
		return this.status;
	}

	public void setStatus(Integer status)
	{
		this.status = status;
	}

	public Set getPlayers()
	{
		return players;
	}

	public void setPlayers(Set players)
	{
		this.players = players;
	}

	public Set getStatses()
	{
		return this.statses;
	}

	public void setStatses(Set statses)
	{
		this.statses = statses;
	}

	public GameType getGame()
	{
		return game;
	}

	public void setGame(GameType game)
	{
		this.game = game;
	}

	public boolean getExcludeplayers()
	{
		return excludeplayers;
	}

	public void setExcludeplayers(boolean excludeplayers)
	{
		this.excludeplayers = excludeplayers;
	}

	public Date getStarttime()
	{
		return starttime;
	}

	public void setStarttime(Date starttime)
	{
		this.starttime = starttime;
	}

	public String getDuration()
	{
		return duration;
	}

	public void setDuration(String duration)
	{
		this.duration = duration;
	}
	
	public Account getWinner()
	{
		return winner;
	}

	public void setWinner(Account winner)
	{
		this.winner = winner;
	}

	public String getWinStatus()
	{
		return winStatus;
	}

	public void setWinStatus(String winStatus)
	{
		this.winStatus = winStatus;
	}

	public boolean getPaymentProcessed()
	{
		return paymentProcessed;
	}

	public void setPaymentProcessed(boolean paymentProcessed)
	{
		this.paymentProcessed = paymentProcessed;
	}

	@Override
	public String toString() {
		return "League [leagueid=" + leagueid + ", gametype=" + gametype
				+ ", name=" + name + ", description=" + description
				+ ", creator=" + creator + ", createdate=" + createdate
				+ ", endtime=" + endtime + ", starttime=" + starttime
				+ ", accepttime=" + accepttime + ", wager=" + wager
				+ ", privacy=" + privacy + ", friendsinvite=" + friendsinvite
				+ ", excludeplayers=" + excludeplayers + ", status=" + status
				+ ", players=" + players + ", statses=" + statses + ", game="
				+ game + ", account=" + account + ", winner=" + winner
				+ ", duration=" + duration + ", winStatus=" + winStatus
				+ ", paymentProcessed=" + paymentProcessed + "]";
	}
}
